import request from '@/utils/request'
// 查询表格
export function getStandardList(data) {
  return request({
    url: '/api/Standard/GetList',
    method: 'post',
    data: data
  })
}
// 新增 修改
export function saveStandard(data) {
  return request({
    url: '/api/Standard/Save',
    method: 'post',
    data: data
  })
}
// 删除
export function deleteStandard(data) {
  return request({
    url: '/api/Standard/Delete',
    method: 'post',
    data: data
  })
}
// 是否启用
export function validStandard(data) {
  return request({
    url: '/api/Standard/Valid',
    method: 'post',
    data: data
  })
}

export function getStandardDetail(data) {
  return request({
    url: '/api/Standard/GetById',
    method: 'post',
    headers: {
      hideToast: true
    },
    data: data
  })
}
